<%@ page contentType="text/html" pageEncoding="utf-8" %>
<%@ taglib prefix="e" uri="/eportal" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <meta name="renderer" content="webkit">
    <link href="${pageContext.request.contextPath}/static/css/common.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/plugins/bootstrap-3.3.5/css/bootstrap.min.css"
          rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/plugins/font-awesome-4.3.0/css/font-awesome.min.css"
          rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/plugins/select2-4.0.0/dist/css/select2.min.css"
          rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/plugins/jqGrid/css/style.css" rel="stylesheet">
    <!--[if lt IE 9]>
    <script src="${pageContext.request.contextPath}/static/plugins/bootstrap-3.3.5/js/html5.js"></script>
    <script src="${pageContext.request.contextPath}/static/plugins/bootstrap-3.3.5/js/respond.min.js"></script>
    <![endif]-->
    <script src="${pageContext.request.contextPath}/static/js/jquery-1.11.3.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/plugins/bootstrap-3.3.5/js/bootstrap.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/plugins/select2-4.0.0/dist/js/select2.min.js"></script>
	<style>
		.jqGrid_wrapper{*+margin-left:270px;}
	
		.lt,.col-sm-3,.col-sm-8{float:left}
		.form-group{*+overflow:hidden;}
		.form-group label{width:16%\9;*+width:16%;text-align:right\9;*+text-align:right;}
		.col-sm-8 .m-t2 {width:30%\9; *+width:36%;}
		.form-group .col-sm-8{width:66%\9;*+width:66%;}
		.form-group .form-control{*+width:95%;}
		.form-control{*+height:22px;}
		#sub{*+margin-right:10px;}
		.input-group .form-control{*+z-index:-1;}
		.upload{*+position:relative;}
		.btn-primary{*+position:absolute;*+left:431px;*+top:-35px;*+z-index:3;}
	</style>
</head>
<body>
<form class="form-horizontal" style="padding: 10px" id="form"
      action="${pageContext.request.contextPath}/admin/tcommunity_audit.action" method="post">
    <div class="form-group">
        <label class="col-sm-3 col-sm-3 control-label"><i class="require"></i>APP名称:</label>

        <div class="col-sm-8">
            <select name=appSid id="appSid"></select>
        </div>
        <input type="hidden" name="sid" value="${sid}"/>
        <input type="hidden" name="status" value="1"/>
		
    </div>
</form>

<script type="text/javascript">
	var sid = ${sid}
    $(function () {
        $.post("${pageContext.request.contextPath}/admin/appstore_list.action", {
				'sid':sid
            },function (data) {
        	$("#appSid").empty();
            $("#appSid").append("<option value=''>请选择APP</option>");
            for (var i = 0; i < data.length; i++) {
                $("#appSid").append("<option value='" + data[i].appId + "'>" + data[i].appName + "</option>");
            }
            $("#appSid").select2({
                "placeholder": "请选择APP",
                "width": "100%"
            })
        }, "json");

    })
</script>
</body>
</html>
